import { PostWorkflowDebugProps, PostWorkflowDebugResponse } from '@/types/workflow/api';
import apiClient from '../apiClient';

export enum WorkflowApi {
  postWorkflowDebug = '/api/ruigpt/main/workflow/debug',
}

/**
 * 获取系统初始化信息
 * @param appId 应用id
 * @returns
 */
const postWorkflowDebug = (data: PostWorkflowDebugProps) =>
  apiClient.post<PostWorkflowDebugResponse>({ url: WorkflowApi.postWorkflowDebug, data });

export default {
  postWorkflowDebug,
};
